home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickTime / QuickTime 3 Interfaces & Libs / QTDevMac / CIncludes / QD3DString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-21  |  2.5 KB  |  120 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        QD3DString.h
  3.  
  4.      Contains:    Q3CString methods
  5.  
  6.      Version:    Technology:    Quickdraw 3D 1.5.4
  7.                  Release:    QuickTime 3.0
  8.  
  9.      Copyright:    © 1995-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __QD3DSTRING__
  19. #define __QD3DSTRING__
  20.  
  21. #ifndef __QD3D__
  22. #include <QD3D.h>
  23. #endif
  24.  
  25.  
  26.  
  27. #if PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_STRUCT_ALIGN
  40.     #pragma options align=power
  41. #elif PRAGMA_STRUCT_PACKPUSH
  42.     #pragma pack(push, 2)
  43. #elif PRAGMA_STRUCT_PACK
  44.     #pragma pack(2)
  45. #endif
  46.  
  47. #if PRAGMA_ENUM_ALWAYSINT
  48.     #pragma enumsalwaysint on
  49. #elif PRAGMA_ENUM_OPTIONS
  50.     #pragma option enum=int
  51. #elif PRAGMA_ENUM_PACK
  52.     #if __option(pack_enums)
  53.         #define PRAGMA_ENUM_PACK__QD3DSTRING__
  54.     #endif
  55.     #pragma options(!pack_enums)
  56. #endif
  57.  
  58. /******************************************************************************
  59.  **                                                                             **
  60.  **                                String Routines                                 **
  61.  **                                                                             **
  62.  *****************************************************************************/
  63. EXTERN_API_C( TQ3ObjectType )
  64. Q3String_GetType                (TQ3StringObject         stringObj);
  65.  
  66.  
  67. /******************************************************************************
  68.  **                                                                             **
  69.  **                        C String Routines                                     **
  70.  **                                                                             **
  71.  *****************************************************************************/
  72. EXTERN_API_C( TQ3StringObject )
  73. Q3CString_New                    (const char *            str);
  74.  
  75. EXTERN_API_C( TQ3Status )
  76. Q3CString_GetLength                (TQ3StringObject         stringObj,
  77.                                  unsigned long *        length);
  78.  
  79. EXTERN_API_C( TQ3Status )
  80. Q3CString_SetString                (TQ3StringObject         stringObj,
  81.                                  const char *            str);
  82.  
  83. EXTERN_API_C( TQ3Status )
  84. Q3CString_GetString                (TQ3StringObject         stringObj,
  85.                                  char **                str);
  86.  
  87. EXTERN_API_C( TQ3Status )
  88. Q3CString_EmptyData                (char **                str);
  89.  
  90.  
  91.  
  92. #if PRAGMA_ENUM_ALWAYSINT
  93.     #pragma enumsalwaysint reset
  94. #elif PRAGMA_ENUM_OPTIONS
  95.     #pragma option enum=reset
  96. #elif defined(PRAGMA_ENUM_PACK__QD3DSTRING__)
  97.     #pragma options(pack_enums)
  98. #endif
  99.  
  100. #if PRAGMA_STRUCT_ALIGN
  101.     #pragma options align=reset
  102. #elif PRAGMA_STRUCT_PACKPUSH
  103.     #pragma pack(pop)
  104. #elif PRAGMA_STRUCT_PACK
  105.     #pragma pack()
  106. #endif
  107.  
  108. #ifdef PRAGMA_IMPORT_OFF
  109. #pragma import off
  110. #elif PRAGMA_IMPORT
  111. #pragma import reset
  112. #endif
  113.  
  114. #ifdef __cplusplus
  115. }
  116. #endif
  117.  
  118. #endif /* __QD3DSTRING__ */
  119.  
  120.